import path from "path";
import React, { lazy } from "react";
import { itemrouter } from "../type/type";

const Cart = lazy(() => import("../views/cart"));
const Home = lazy(() => import("../views/home"));
const List = lazy(() => import("../views/list"));
const Style = lazy(() => import("../views/style"));

export const homerouter: itemrouter[] = [
  {
    path: "/home",
    element: <Home data={[]} />,
  },
  {
    path: "/",
    element: <Cart />,
  },
  {
    path: "/list/:id",
    element: <List />,
  },
  {
    path: "/style",
    element: <Style />,
  },
];
